import App from './App'
import './index.css'
import { createRoot } from 'react-dom/client'
import { antd5 } from './presets/antd5'
import { antd5ProComponents } from './presets/antd5-pro-components'
import { reactPreset } from './presets/reactPreset'
import { nativeTags } from './presets/nativeTags'

const container = document.getElementById('root')

if (container) {
  const root = createRoot(container)
  root.render(
    <App
      dependencyConfig={[
        ...reactPreset,
        antd5,
        antd5ProComponents,
        nativeTags,
      ]}
    />,
  )
}
